define([ "PDUtilDir/grid", "PDUtilDir/searchBlock" ],
		function(Grid, SearchBlock) {

			function init(cache, auditObj, detailObj) {
				SearchBlock.init('searchBlockId');
				// 初始化
				return Grid({
					id : "AuditGuideGirdDivId",
					pageSize : 10,
					index : true,
					multi : true,
					pagination : true,
					cache : false,
					layout : [ {
						name : "姓名",
						field : "guideName",
						sort : true/*,
						click : function(e) {
							detailObj.run(e.data.row);
						}*/
					}, {
						name : "联系电话",
						field : "guidePhone",
						sort : true
					}, {
						name : "身份证",
						field : "certificatesNumber"
					}, {
						name : "状态",
						field : "auditStatus",
						format : function(e) {
							return cache.statusMap.get(e.row.auditStatus);
						}
					}, {
						name : "操作",
						field : "createTime",
						sort : false,
						width: '180px',
						/*click : function(e) {
							auditObj.run(e.data.row);
						},*/
						format : function(e) {
							return '<a href="javascript:angular.element(\'#AuditGuideGirdDivId\').scope().auditSupport.run(\'' + e.row.id + '\')">审核</a>';
						}
					} ],
					toolbar : [ ],
					data : {
						type : 'URL',
						value : getServer() + '/flea/hclv/guide/selectAllUnaudited.htmls'
					}
				});
			}
			return {
				init : init
			}
		});